import { http } from '@/utils/request'
import type { IGoodsInfo } from '@/types/api/Goods'

// 获取商品详情
export const findGoods = (id: string) => {
  return http<IGoodsInfo>('get', '/goods', { id })
}
